package com.hdoit.apollo.logical.statistics.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.hdoit.apollo.logical.statistics.dao.IStockChangeStatisticsDao;
import com.hdoit.apollo.logical.statistics.mapper.StockChangeStatisticsMapper;
import com.hdoit.apollo.logical.statistics.model.StockChangeRecord;
import com.hdoit.apollo.logical.statistics.model.StockChangeStatistics;
import com.hdoit.apollo.logical.viewmodel.statistics.StockChangeRecordSearch;
import com.hdoit.apollo.logical.viewmodel.statistics.StockChangeStatisticsSearch;
import com.tennetcn.data.dao.base.impl.SuperDao;
import com.tennetcn.data.message.PagerModel;


@Component
public class StockChangeStatisticsDaoImpl extends SuperDao<StockChangeStatistics> implements IStockChangeStatisticsDao{
	@Autowired
	private StockChangeStatisticsMapper stockChangeStatisticsMapper;
	@Override
	public StockChangeStatistics getStockChangeStatistics(StockChangeStatisticsSearch search) {
		return stockChangeStatisticsMapper.getStockChangeStatistics(search);
	}
	@Override
	public List<StockChangeRecord> getInStockChangeRecords(StockChangeRecordSearch search, PagerModel pagerModel) {
		return stockChangeStatisticsMapper.getInStockChangeRecords(search,pagerModel);
	}
	@Override
	public List<StockChangeRecord> getOutStockChangeRecords(StockChangeRecordSearch search, PagerModel pagerModel) {
		return stockChangeStatisticsMapper.getOutStockChangeRecords(search,pagerModel);
	}
	@Override
	public List<StockChangeRecord> getInventoryChangeRecords(StockChangeRecordSearch search, PagerModel pagerModel) {
		return stockChangeStatisticsMapper.getInventoryChangeRecords(search,pagerModel);
	}
	@Override
	public List<StockChangeRecord> getOutStockReturnRecords(StockChangeRecordSearch search, PagerModel pagerModel) {
		return stockChangeStatisticsMapper.getOutStockReturnRecords(search, pagerModel);
	}
	@Override
	public List<StockChangeRecord> getOutStockFahuoRecords(StockChangeRecordSearch search, PagerModel pagerModel) {
		return stockChangeStatisticsMapper.getOutStockFahuoRecords(search,pagerModel);
	}
	@Override
	public List<StockChangeRecord> getOutStockChangeOutStockFahuo(StockChangeRecordSearch search,
			PagerModel pagerModel) {
		return stockChangeStatisticsMapper.getOutStockChangeOutStockFahuo(search,pagerModel);
	}
	@Override
	public List<StockChangeRecord> getAdjustmentChangeRecords(StockChangeRecordSearch search, PagerModel pagerModel) {
		return stockChangeStatisticsMapper.getAdjustmentChangeRecords(search,pagerModel);
	}
	@Override
	public List<StockChangeRecord> getStockChangeRecordList(StockChangeRecordSearch search, PagerModel pagerModel) {
		return stockChangeStatisticsMapper.getStockChangeRecordList(search,pagerModel);
	}

}